package com.kang.service.impl;

import com.kang.mapper.StudentMapper;
import com.kang.model.Student;
import com.kang.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018/1/10.
 */
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper mapper;

    @Override
    public Student getUserById(Integer id) {
        return null;
    }

    @Override
    public List<Student> getStudentList() {
        return mapper.getStudentList();
    }

    @Override
    public int add(Student student) {
        return 0;
    }

    @Override
    public int update(Integer id, Student student) {
        return 0;
    }

    @Override
    public int delete(Integer id) {
        return 0;
    }

    @Override
    public Student findStdByNameAndPwd(String name, String pwd) {
        return mapper.findStdByNameAndPwd(name,pwd);
    }

    @Override
    public List<Student> findStdByName(String name) {
        return mapper.findStdByName(name);
    }
}
